using System;
using System.Collections.Generic;

namespace GADC.Domain
{
    public class Orders
    {
        public  int ID { get; set; }
        public string OrderID { get; set; }
        public DateTime Time { get; set; }
        public double Price { get; set; }
        public string ReceiveName { get; set; }
        public string ReceiveTelephone { get; set; }
        public string ReceiveAddress { get; set; }
        public string ReceiveEmail { get; set; }
        public int ReciveType { get; set; }

        public Users User { get; set; }
        public OrderStatus OrderStatus { get; set; }
        public OrderType OrderType { get; set; }

        public IList<OrderTrack> TrackList { get; set; }


        public OrderSpecial Special { get; set; }

        public string OrderTypeName
        {
            get
            {
                return OrderType == null ? "" : OrderType.Name;
            }
        }

        public string OrderStatusName
        {
            get
            {
                return OrderStatus == null ? "" : OrderStatus.Name;
            }
        }
            
    }
}
